package com.consul.feign;


import com.consul.feign.fallback.FeignFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author zhangbowen
 * @date 2019/4/8
 **/
@FeignClient(value = "server2", fallback = FeignFallbackImpl.class)
public interface FeignService {
  @GetMapping(value = "get")
    String get();
  /*  @GetMapping(value = "get")
    String get(@RequestHeader(name = "type") Integer type);*/
 /* @GetMapping(value = "get")
  String get(@SpringQueryMap A a);*/
}

